Finding ID | Version | Rule ID | IA Controls | Severity |
---|---|---|---|---|
V-209560 | AOSX-14-001029 | SV-209560r610285_rule | Medium |
Description |
---|
The audit service must be configured to require that records are kept for seven days or longer before deletion when there is no central audit record storage facility. When "expire-after" is set to "7d", the audit service will not delete audit logs until the log data is at least seven days old. |
STIG | Date |
---|---|
Apple OS X 10.14 (Mojave) Security Technical Implementation Guide | 2021-06-21 |
Check Text ( C-9811r466300_chk ) |
---|
The check displays the amount of time the audit system is configured to retain audit log files. The audit system will not delete logs until the specified condition has been met. To view the current setting, run the following command: /usr/bin/sudo /usr/bin/grep ^expire-after /etc/security/audit_control If this returns no results, or does not contain "7d" or a larger value, this is a finding. |
Fix Text (F-9811r466301_fix) |
---|
Edit the "/etc/security/audit_control" file and change the value for "expire-after" to the amount of time audit logs should be kept for the system. Use the following command to set the "expire-after" value to "7d": /usr/bin/sudo /usr/bin/sed -i.bak 's/.*expire-after.*/expire-after:7d/' /etc/security/audit_control; /usr/bin/sudo /usr/sbin/audit -s A text editor may also be used to implement the required updates to the "/etc/security/audit_control" file. |